import request from '@/utils/request'

// 查询应收款月份报列表
export function listPoring(query) {
  return request({
    url: '/poring/poring/list',
    method: 'get',
    params: query
  })
}

// 查询应收款月份报详细
export function getPoring(id) {
  return request({
    url: '/poring/poring/' + id,
    method: 'get'
  })
}

// 新增应收款月份报
export function addPoring(data) {
  return request({
    url: '/poring/poring',
    method: 'post',
    data: data
  })
}

// 修改应收款月份报
export function updatePoring(data) {
  return request({
    url: '/poring/poring',
    method: 'put',
    data: data
  })
}

// 删除应收款月份报
export function delPoring(id) {
  return request({
    url: '/poring/poring/' + id,
    method: 'delete'
  })
}
